<div id="div1" style="border-top: thin solid #000000;">
TEXT
</div>

<div id="div2" style="border-top-width: thin; border-top-style: solid; border-top-color: #000000;">
TEXT
</div>